package com.hong.spring.datasource.entity;

import java.io.Serializable;

/**
 * @Auther: csh
 * @Date: 2020/8/4 18:27
 * @Description:
 */
public class UserRole implements Serializable {
    //主键
    private Integer id;
    // 用户id
    private Integer userId;
    //角色id
    private Integer roleId;

    public UserRole(Integer id, Integer userId, Integer roleId) {
        this.id = id;
        this.userId = userId;
        this.roleId = roleId;
    }

    public UserRole() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
}
